package com.ywl.task.service.impl;

import com.ywl.task.mapper.UserMapper;
import com.ywl.task.pojo.User;
import com.ywl.task.service.UserService;
import com.ywl.task.util.pojo.QdResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 严伟伦
 * @Company 无
 * @Description
 * @Date: 2024/9/5 20:02
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Value("${server.port}")
    private String port;
    @Override
    public QdResult queryAllUser() {
        QdResult result = QdResult.success(userMapper.selectAllUser());
        result.setMsg(port);
        return result;
    }
}
